package org.example.listener;

import org.springframework.amqp.core.Message;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @author Lenovo
 * @version 1.0
 * @description TODO
 * @date 30/7/2023 上午11:42
 */
@Component
public class RabbimtMQListener {
    @RabbitListener(queues = "springboot_queue")
    public void listenerQueue(Message message){
        System.out.println(new String(message.getBody()));
    }

}
